import request from '@/utils/request'

// 查询抓图策略列表
export function listSnapStrategy(query) {
  return request({
    url: '/genius/platform-snap-strategy/list',
    method: 'get',
    params: query
  })
}

// 查询抓图策略详情
export function getSnapStrategyDetail(id) {
  return request({
    url: '/genius/platform-snap-strategy/' + id,
    method: 'get'
  })
}

// 新增抓图策略
export function addSnapStrategy(data) {
  return request({
    url: '/genius/platform-snap-strategy',
    method: 'post',
    data: data
  })
}

// 修改抓图策略
export function updateSnapStrategy(data) {
  return request({
    url: '/genius/platform-snap-strategy',
    method: 'put',
    data: data
  })
}
// 导出抓图策略
export function exportSnapStrategy(data) {
  return request({
    url: '/genius/platform-snap-strategy/export',
    method: 'post',
    data: data
  })
}

// 逻辑删除抓图策略信息
export function delSnapStrategy(ids) {
  return request({
    url: '/genius/platform-snap-strategy/' + ids   ,
    method: 'delete'
  })
}
